package org.magicsoft.office.excel.model;

public class CountData {

	private String tableName = null;

	private int insertCount = 0;

	private int updateCount = 0;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public int getInsertCount() {
		return insertCount;
	}

	public void setInsertCount(Integer insertCount) {
		if (insertCount == null) {
			this.insertCount = 0;
		} else {
			this.insertCount = insertCount;
		}
	}

	public int getUpdateCount() {
		return updateCount;
	}

	public void setUpdateCount(Integer updateCount) {
		if (updateCount == null) {
			this.updateCount = 0;
		} else {
			this.updateCount = updateCount;
		}
	}

	public int getDataCount() {
		return this.insertCount + this.updateCount;
	}

}
